package com.apexedu.portal.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 迎新收费类别
 * Created by ly on 2015/8/18.
 */
public class YxSfLb {
    private String type; //类别名称
    private Boolean jfqk = false; //是否合计的缴费情况
    private int orderno; //排序值
    private List<YxSfXm> sfXmList = new ArrayList<YxSfXm>();

    public YxSfLb() {
    }

    public YxSfLb(String type, int orderno, Boolean jfqk) {
        this.type = type;
        this.orderno = orderno;
        this.jfqk = jfqk;
    }

    public YxSfLb(String type, int orderno, List<YxSfXm> sfXmList) {
        this.type = type;
        this.orderno = orderno;
        this.sfXmList = sfXmList;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取合计应缴金额
     *
     * @return 合计应缴金额
     */
    public Double getHjysje() {
        Double count = 0d;
        for (YxSfXm sfxm : this.sfXmList) {
            count += sfxm.getYsje();
        }
        return count;
    }

    /**
     * 获取合计实缴金额
     *
     * @return 合计应缴金额
     */
    public Double getHjsjje() {
        Double count = 0d;
        for (YxSfXm sfxm : this.sfXmList) {
            count += sfxm.getSjje();
        }
        return count;
    }

    /**
     * 获取合计缓缴金额
     *
     * @return 合计缓缴金额
     */
    public Double getHjhjje() {
        Double count = 0d;
        for (YxSfXm sfxm : this.sfXmList) {
            count += sfxm.getHjje();
        }
        return count;
    }

    /**
     * 获取合计免缴金额
     *
     * @return 合计免缴金额
     */
    public Double getHjmjje() {
        Double count = 0d;
        for (YxSfXm sfxm : this.sfXmList) {
            count += sfxm.getMjje();
        }
        return count;
    }

    public List<YxSfXm> getSfXmList() {
        return sfXmList;
    }

    public void setSfXmList(List<YxSfXm> sfXmList) {
        this.sfXmList = sfXmList;
    }

    public Boolean getJfqk() {
        return jfqk;
    }

    public void setJfqk(Boolean jfqk) {
        this.jfqk = jfqk;
    }

    public int getOrderno() {
        return orderno;
    }

    public void setOrderno(int orderno) {
        this.orderno = orderno;
    }
}
